package top.scauwlt;

import top.scauwlt.extension.ExtensionLoader;
import top.scauwlt.serialize.Serializer;

/**
 * @Author wmm
 * @Date 2022/7/24 23:35
 */
public class TestSPI {
    public static void main(String[] args) {
        Serializer kryo = ExtensionLoader.getExtensionLoader(Serializer.class).getExtension("hessian");
        byte[] bytes = kryo.serialize("123");
        System.out.println(bytes);
        String s = kryo.deserialize(bytes, String.class);
        System.out.println(s);
    }
}
